home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / standard / fudge.z / fudge
Encoding:
Text File  |  1998-10-20  |  2.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ffffuuuuddddggggeeee((((3333GGGG))))                                                            ffffuuuuddddggggeeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffuuuuddddggggeeee - specifies fudge values that are added to a graphics window
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd ffffuuuuddddggggeeee((((xxxxffffuuuuddddggggeeee,,,, yyyyffffuuuuddddggggeeee))))
  13.      lllloooonnnngggg xxxxffffuuuuddddggggeeee,,,, yyyyffffuuuuddddggggeeee;;;;
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _x_f_u_d_g_e   expects the number of pixels added in the _x direction.
  17.  
  18.      _y_f_u_d_g_e   expects the number of pixels added in the _y direction.
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      ffffuuuuddddggggeeee specifies fudge values that are added to the dimensions of a
  22.      graphics window when it is sized.  Typically, you use it to create
  23.      interior window borders.  Call ffffuuuuddddggggeeee prior to calling wwwwiiiinnnnooooppppeeeennnn.
  24.  
  25.      ffffuuuuddddggggeeee is useful in conjunction with sssstttteeeeppppuuuunnnniiiitttt and kkkkeeeeeeeeppppaaaassssppppeeeecccctttt.  With
  26.      sssstttteeeeppppuuuunnnniiiitttt the window size for integers _m and _n is:
  27.  
  28.           _w_i_d_t_h = _x_u_n_i_t * _m + _x_f_u_d_g_e
  29.           _h_e_i_g_h_t = _y_u_n_i_t * _n + _y_f_u_d_g_e
  30.  
  31.      With kkkkeeeeeeeeppppaaaassssppppeeeecccctttt the window size is (_w_i_d_t_h, _h_e_i_g_h_t), where:
  32.  
  33.           (_w_i_d_t_h - _x_f_u_d_g_e) * _y_a_s_p_e_c_t = (_h_e_i_g_h_t - _y_f_u_d_g_e) * _x_a_s_p_e_c_t
  34.  
  35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.      keepaspect, stepunit, winopen
  37.  
  38. NNNNOOOOTTTTEEEE
  39.      This routine is available only in immediate mode.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.